package org.jeecg.modules.chvegetable.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.math.BigDecimal;

/**
 * @Description: 预出库台账
 * @Author: jeecg-boot
 * @Date:   2023-02-12
 * @Version: V1.0
 */
@Data
@TableName("t_flower_tag_bookpre")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_flower_tag_bookpre对象", description="预出库总台账")
public class FlowerTagBookpre {
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "id")
	private String id;

	private Integer version;
	@Excel(name = "来源基地", width = 15,dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "来源基地")
	@Dict( dictTable = "t_flower_planting_base",dicText = "name",dicCode = "id")
	private String sourceBase;
	/**来源大棚*/
	@Excel(name = "来源大棚", width = 15,dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	@ApiModelProperty(value = "来源大棚")
	@Dict( dictTable = "t_flower_planting_greenhouse",dicText = "name",dicCode = "id")
	private String sourceGreenhouse;
	@Excel(name = "库房", width = 15, dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
	@ApiModelProperty(value = "库房")
	@Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
	private String storehouse;

	@Excel(name = "批次", width = 15 )
	@ApiModelProperty(value = "批次")
	private String productionId;
	@Excel(name = "成本中心", width = 15,dicCode = "ch_cost")
	@Dict(dicCode = "ch_cost" )
	@ApiModelProperty(value = "成本中心")
	private String cost;

	@Excel(name = "渠道", width = 15)
	@ApiModelProperty(value = "渠道")
	private String channel;

	/**产品*/
	@Excel(name = "产品", width = 15)
	@ApiModelProperty(value = "产品")
	private String variety;
	/**品种编码*/
	@Excel(name = "品种编码", width = 15)
	@ApiModelProperty(value = "品种编码")
	private String varietyCode;
	/**打包规格*/
	@Excel(name = "打包规格", width = 15)
	@ApiModelProperty(value = "打包规格")
	private String packingSpecifications;
	/**花杆长度*/
	@Excel(name = "花杆长度", width = 15)
	@ApiModelProperty(value = "花杆长度")
	private String flowerPoleLength;
	@Excel(name = "等级", width = 15)
	@ApiModelProperty(value = "等级")
	private String classes;

	/**number*/
	@Excel(name = "总数量", width = 15,type = 4)
	@ApiModelProperty(value = "总数量")
	private BigDecimal totalNumber;

	@Excel(name = "台账数量", width = 15,type = 4)
	@ApiModelProperty(value = "台账数量")
	private BigDecimal number;
	/**number*/
	@Excel(name = "锁定数量", width = 15,type = 4)
	@ApiModelProperty(value = "锁定数量")
	private BigDecimal lockNumber;

	@Excel(name = "可用数量", width = 15,type = 4)
	@ApiModelProperty(value = "可用数量")
	private BigDecimal ableNumber;
}
